package org.apache.servicecomb.samples.practise.houserush.sale.dao;

import org.apache.servicecomb.samples.practise.houserush.sale.entity.SaleQualification;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface SaleQualificationDao extends JpaRepository<SaleQualification,Integer> {

     List<SaleQualification> findByCustomerId(int customerId);


    //根据客户id和活动id查询活动资格
    SaleQualification findBySaleIdAndCustomerId(int saleId,int customerId);

    //根据客户id删除活动资格
    void deleteAllByCustomerId(int cutomerId);


}
